<?php $this->start('aside'); ?>
<?php echo $this->element('aside'); ?>
<?php $this->end(); ?>

<?php $this->start('top'); ?>
<?php echo $this->element('top'); ?>
<?php $this->end(); ?>

<div class="row">
	<div class="col-lg-12">
		<div class="panel panel-default">
			<div class="panel-heading">
				文件上传
			</div>
			<div class="panel-body">
				<div class="row">
					<table class="table table-striped table-bordered table-hover" id="dataTablesProduct">
						<thead>
						<tr>
							<th>名称</th>
							<th>尺寸</th>
							<th>路径</th>
							<th>创建时间</th>
							<th>修改时间</th>
							<th>操作</th>
						</tr>
						</thead>
						<tbody>
						<?php if (!empty($uploads)): ?>
						<?php foreach ($uploads as $key => $val): ?>
						<tr>
							<td><?php echo $val['Upload']['name']; ?></td>
							<td>
								<button type="button" class="btn btn-outline btn-xs btn-danger">
									<?php echo $val['Upload']['size']; ?>
								</button> bytes
							</td>
							<td><?php echo $val['Upload']['path']; ?></td>
							<td><?php echo $val['Upload']['created']; ?></td>
							<td><?php echo $val['Upload']['modified']; ?></td>
							<td>
								<a href="javascript:;" class="btn btn-success btn-xs">
									<i class="fa fa-edit"></i> 编辑
								</a>
								<a href="javascript:;" class="btn btn-danger btn-xs">
									<i class="fa fa-remove"></i> 删除
								</a>
							</td>
						</tr>
						<?php endforeach; ?>
						<?php endif; ?>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
</div>
